package com.dfrz.ch09.task;

/**
 * 作者：wangmaokang
 * 日期: 2021/4/20 9:51
 * 描述:
 */
public class Car {
    private  double price;
    private int subject;//1:轿车 2:客车
    private int model;//1:宝马 2:别克 3:小金杯 4:大金杯

    public Car() {
    }

    public Car(double price, int subject, int model) {
        this.price = price;
        this.subject = subject;
        this.model = model;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getSubject() {
        return subject;
    }

    public void setSubject(int subject) {
        this.subject = subject;
    }

    public int getModel() {
        return model;
    }

    public void setModel(int model) {
        this.model = model;
    }
}
